import request from "@/utils/request"; //导入封装请求的js文件
//获取商品收藏列表
export function selectAllByProductName(params) {
  return request({
    url: "/pmsProductCollection/selectAllByProductName",
    method: "GET",
    params: params,
  });
}
//取消收藏
export function deleteProductCollection(params) {
    return request({
      url: "/pmsProductCollection/deleteProductCollection",
      method: "DELETE",
      params: params,
    });
  }
  //收藏商品
  export function saveProductCollection(params) {
    return request({
      url: "/pmsProductCollection/saveProductCollection",
      method: "post",
      params: params,
    });
  }
  //收藏店铺
  export function saveStoreCollection(params) {
    return request({
      url: "/pmsStoreCollection/saveStoreCollection",
      method: "post",
      params: params,
    });
  }
  //获取店铺收藏列表
  export function selectAllByStoreName(params) {
    return request({
      url: "/pmsStoreCollection/selectAllByStoreName",
      method: "GET",
      params: params,
    });
  }
  //取消店铺收藏
  export function deleteStoreCollection(params) {
    return request({
      url: "/pmsStoreCollection/deleteStoreCollection",
      method: "DELETE",
      params: params,
    });
  }